import {getTop} from "../api/index"
//获取排行榜
const creator = (type,payload)=>({type,payload})
export const getTopList = ()=>(dispatch)=>{
    getTop().then(res=>{
        dispatch(creator('GET_TOP_LIST',res.data))
    })

}